#include "../include/MutexLock.hpp"

wd::MutexLock::MutexLock(){
    pthread_mutex_init(&_mutex,NULL);
}

wd::MutexLock:: ~MutexLock(){
    pthread_mutex_destroy(&_mutex);
}

void wd::MutexLock::lock(){
    pthread_mutex_lock(&_mutex);
}
void wd::MutexLock::unlock(){
    pthread_mutex_unlock(&_mutex);
}

pthread_mutex_t * wd::MutexLock::getMutexLockPtr(){
    return &_mutex;
}
